package com.lyf.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @AUTHOR LYF
 * @DATE 2022/5/29
 * @VERSION 1.0
 * @DESC
 */
@RestController
@RefreshScope
public class ConfigInfoController {
    @Value("${config.info}")
    String configInfo;
    @GetMapping("/test")
    String test(){return configInfo;}
}
